import { kgjHttp as http } from '@/services/http';
import type { ListResult, Limit } from '@/types/api/common';
const m = '/api/invest/product';
// 商品海

/** 商品海列表 */
export const getList = (payload: { data: any; params: Limit }) => http<ListResult<any>>({ method: 'post', url: `${m}/list`, ...payload });

/** 商品海-认领 */
export const claim = (params: { product_id: number }) => http<ListResult<any>>({ method: 'post', url: `${m}/claim`, params });

/** 商品海-商品分类列表 */
export const getCategoryList = () => http<ListResult<any>>({ url: `${m}/category/list` });
